﻿function notySuccess(mes) {
    noty({ layout: "center", type: "success", text: mes, timeout: 800 });
}
function notyWarning(mes) {
    noty({ layout: "center", type: "warning", text: mes, timeout: 800 });
}
function notyConfirm(mes) {
    noty({
        text: mes,
        type: 'alert',
        dismissQueue: true,
        layout: 'center',
        theme: 'default',
        buttons: [
          {
              addClass: 'btn btn-primary', text: '确认', onClick: function ($noty) {
                  $noty.close();
                  //noty({ dismissQueue: true, force: true, layout: layout, theme: 'default', text: 'You clicked "Ok" button', type: 'success' });
              }
          },
          {
              addClass: 'btn btn-danger', text: '取消', onClick: function ($noty) {
                  $noty.close();
                  //noty({ dismissQueue: true, force: true, layout: layout, theme: 'default', text: 'You clicked "Cancel" button', type: 'error' });
              }
          }
        ]
    });
}